cellrenderertoggle: Change "indicator-size" handling
authorBenjamin Otte <otte@redhat.com>
Tue, 16 Feb 2016 01:41:44 +0000 (02:41 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 16 Feb 2016 01:53:34 +0000 (02:53 +0100)
commitab1906952e11a11737aec41e86ba81c050886845
treef69881791503db29f889e28d145b3f315c761803
parent3c0cd8aea4e0e91459985ef42ece02f5dd683fc7
cellrenderertoggle: Change "indicator-size" handling

The following changes were done to (hopefully) achieve backwards
compatibility while allowing themes to change the size of the indicator.

(1) Deprecate the property.
(2) Change the default value of the property to 0. If it is not 0,
    use the property's value for the indicator size. This should make
    all programs that actually set it keep the size they set it to.
(3) If set to other values than 0, use min-width/min-height of the
    check/radio node to size the indicator. This allows themes to change
    the size.
(4) Fall back to the previous default size of 16px. This way themes that
    do not set the size keep the same behavior.
gtk/gtkcellrenderertoggle.c